package com.myNovel.novel.dto.req;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

/**
 * @Author：Guxx
 * @Package：com.myNovel.novel.dto.req
 * @Date：2024/3/30 16:34
 * @Filename：UserCommentReqDto
 */
@Data
public class UserCommentReqDto {
    @Schema(description = "用户id",required = true)
    private Long userId;

    @Schema(description = "小说id",required = true)
    @NotNull(message="小说ID不能为空！")
    private Long bookId;

    @Schema(description = "评论",required = true)
    @NotNull(message="评论不能为空！")
    @Length(min = 10,max = 512)
    private String commentContent;
}
